<header>
	<div class="w1680 header bc shadow">
		<a href="<?php echo site_url('welcome'); ?>"><div class="logo fl"></div></a>
		<div class="header-right fr">
			<ul class="fl">
				<li>
					<a class="link-sw" href="<?php echo site_url('about/intro'); ?>">远川世界</a>
					<div class="sub-nav">
						<a href="<?php echo site_url('about/intro'); ?>">公司概括</a>
						<a href="<?php echo site_url('about/contact'); ?>">联系我们</a>
					</div>
				</li>
				<?php $hnav=$this->db->order_by('sort_id','asc')->get_where('coltypes',array('cid'=>4,'depth'=>0))->result_array();//获取新闻分类侧导分类?>
				<li>
					<a class="link-sw" href="<?php echo site_url('product/index'); ?>">产品系列</a>
					<div class="sub-nav2">
					<?php if(!empty($hnav)):?>
					<?php foreach($hnav as $k=>$v):?>
					<?php //if($k<5):?>
						<a href="<?php echo site_url('product/index/'.$v['id']); ?>"><?php echo $v['title']?></a>
					<!-- <?php //endif;?> -->
					<!-- <?php //if($k==6):?>
					<a href="<?php echo site_url('product'); ?>">查看所有产品</a>
					<?php //endif;?> -->
					<?php endforeach;?>
					<?php endif;?>
					</div>
				</li>
				
				<li>
					<a class="link-sw" href="<?php echo site_url('news/index'); ?>">资讯中心</a>
					<div class="sub-nav">
						<a href="<?php echo site_url('news/index'); ?>">交易案例</a>
						<a href="<?php echo site_url('news/msg'); ?>">新闻动态</a>
					</div>
				</li>
				<li>
					<a class="link-sw" href="<?php echo site_url('services/index'); ?>">服务支持</a>
					<div class="sub-nav">
						<a href="<?php echo site_url('services/index'); ?>">客户服务</a>
						<a href="<?php echo site_url('services/faq'); ?>">常见问题</a>
						<a href="<?php echo site_url('services/repair'); ?>">产品维修</a>
					</div>
				</li>
			</ul>

			<div class="fl search">
			<?php $link=$this->db->get_where('page',array('cid'=>12))->row_array();?>
				<a href="<?php if(!empty($link['link'])):?><?php echo $link['link']?><?php endif;?>" target="_blank"><span class="fl mail"></span></a>
				<form action="<?php echo site_url('product/search'); ?>" method="get">
				<input id="search-text" type="text" value="请搜索您了解的产品" class="fl search-text" name="search" />
				<input type="submit" value="" class="fl search-btn" />
				</form>
			</div>
		</div>
	</div>
</header>

